/* 景点选择页面专用样式 */
.attractions-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    min-height: calc(100vh - 240px); /* 确保内容区高度充足 */
}

/* 左侧地点导航 */
.locations-sidebar {
    flex: 0 0 250px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.locations-sidebar h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #CCFF66;
    display: flex;
    align-items: center;
}

.locations-sidebar h4 i {
    margin-right: 10px;
    color: #CCFF66;
}

.locations-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.locations-nav li {
    margin-bottom: 10px;
}

.location-link {
    display: block;
    padding: 12px 15px;
    background-color: rgba(13, 50, 33, 0.5);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.location-link:hover, .location-link.active {
    background-color: #0d3221;
    color: #CCFF66;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 右侧景点图片网格 */
.attractions-grid {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-content: space-between; /* 确保最后一行与侧边栏底部对齐 */
}

/* 景点卡片样式 */
.attraction-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.attraction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.attraction-card figure {
    margin: 0;
    flex: 1;
}

.attraction-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.attraction-card:hover img {
    transform: scale(1.05);
}

.attraction-card figcaption {
    padding: 12px;
    color: white;
    background-color: rgba(13, 50, 33, 0.7);
    text-align: center;
    font-weight: 500;
}

.attraction-details {
    padding: 15px;
    color: #f0f0f0;
    font-size: 14px;
}

.attraction-details summary {
    color: #CCFF66;
    cursor: pointer;
    margin-bottom: 5px;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .attractions-container {
        flex-direction: column;
    }
    
    .locations-sidebar {
        flex: none;
        width: 100%;
    }
    
    .attractions-grid {
        grid-template-columns: 1fr;
    }
    
    .main-menu ul {
        display: none;
        flex-direction: column;
    }
    
    .main-menu ul.show {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .attractions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .attractions-grid {
        height: 100%;
    }
}

/* 伪元素应用 */
.locations-nav li::before {
    content: "\f105";
    font-family: "FontAwesome";
    color: rgba(204, 255, 102, 0.7);
    margin-right: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.locations-nav li:hover::before {
    opacity: 1;
}

/* 复合选择器 */
.attraction-card:nth-child(odd) {
    border-left: 3px solid #CCFF66;
}

.attraction-card:nth-child(even) {
    border-left: 3px solid #c8805a;
}

/* 属性选择器 */
.attraction-card[data-location="harbin"] img {
    border-top: 3px solid #CCFF66;
}
    